Fix the documentation for the PROFILE envvar passed to build scripts
authorRan Benita <ran234@gmail.com>
Sun, 5 Feb 2017 18:53:11 +0000 (20:53 +0200)
committerRan Benita <ran234@gmail.com>
Sun, 5 Feb 2017 18:53:11 +0000 (20:53 +0200)
Closes #2084.

src/doc/environment-variables.md

index 30aed822a2d34b6cdeac6f292c72af0e97e83f60..01ed64b22bce6f7cbfb0cd5be066c15e7dd79897 100644 (file)
@@ -84,8 +84,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
                be useful to pass a `-j` parameter to a system like `make`.
 * `OPT_LEVEL`, `DEBUG` - values of the corresponding variables for the
                          profile currently being built.
-* `PROFILE` - name of the profile currently being built (see
-              [profiles][profile]).
+* `PROFILE` - `release` for release builds, `debug` for other builds.
 * `DEP_<name>_<key>` - For more information about this set of environment
                        variables, see build script documentation about [`links`][links].
 * `RUSTC`, `RUSTDOC` - the compiler and documentation generator that Cargo has